<?php
/*<h1> <?php  echo $this->mensaje ?> </h1>*/

//----------------------------------------------------------------------
  // Sophia
  // Sophia by Alex Olave - http://www.alfazeta.cl
  //----------------------------------------------------------------------

  //----------------------------------------------------------------------
  // Author: 	Alex Olave - http://www.alfazeta.cl
  // Copyright: copyright (C) 2012 - Alex Olave.
  // License: 	GNU/GPL, http://www.gnu.org/copyleft/gpl.html
  // Pack: 	Sophia
  //----------------------------------------------------------------------

  //----------------------------------------------------------------------
  // Sophia is free software. This version may have been modified pursuant
  // to the GNU General Public License, and as distributed it includes or
  // is derivative of works licensed under the GNU General Public License or
  // other free or open source software licenses.
  //----------------------------------------------------------------------


defined( '_JEXEC' ) or die( 'Restricted access' );

JHTML::_('behavior.mootools');
$pane1 =& JPane::getInstance('tabs');

		echo $pane1->startPane( 'pane1' );
		echo $pane1->startPanel( JTEXT::_('Alumno'), 'nom_cp_menu' );
		echo '<div id="cpanel">';
		
?>

	<table class="adminlist">

	<tbody>
	
		<?php
	
		$k = 0;
		for ($i=0, $n=count( $this->alumnos ); $i < $n; $i++)
		{
			$row = &$this->alumnos[$i];

			$checked 	= JHTML::_('grid.id',  $i, $row->id );
			$published 	= JHTML::_('grid.published', $row, $i );
			
		?>
					<tr>
						<td width="20%" class="key">
							<label for="name">
								<?php echo JText::_( 'NOMBREALUMNO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="nombre" id="nombre" size="50" value="<?php echo $row->nombre;?>" />
						</td>
					</tr>
					<tr>
						<td width="20%" class="key">
							<label>
							<?php echo JText::_( 'SEXO' ); ?>:
							</label>
						</td>
						<td>
							<input disabled class="inputbox" size="12" name="sexo" id="sexo" value="<?php echo $row->sexo; ?>"/>
						</td>
					</tr>
					
					<tr>
						<td width="20%" class="key">
							<label>
							<?php echo JText::_( 'NACIMIENTO' ); ?>:
							</label>
						</td>
					     <td ><input disabled class="inputbox" size="12" name="nacimiento" id="nacimiento" value="<?php echo $row->nacimiento; ?>"/>
                         
					  </td>
					</tr>
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'CIUDAD' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="ciudad" id="ciudad" size="50" value="<?php echo $row->ciudad_id;?>" />
						</td>
					</tr>
					

					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'TELEFONO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled  class="inputbox" type="text" name="telefono" id="telefono" size="50" value="<?php echo $row->telefono;?>" />
						</td>
					</tr>
					 <tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'RUT' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="rut" id="rut" size="50" value="<?php echo $row->rut;?>" />
						</td>
					</tr>	
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'FORO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="foto" id="foto" size="50" value="<?php echo $row->foto;?>" />
						</td>
					</tr>	
		        	<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'PADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="padre" id="padre" size="50" value="<?php echo $row->padre;?>" />
						</td>
					</tr>
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'CELPADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="cel_padre" id="cel_padre" size="50" value="<?php echo $row->cel_padre;?>" />
						</td>
					</tr>
  					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'EMAILPADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled disabled class="inputbox" type="text" name="email_padre" id="email_padre" size="50" value="<?php echo $row->email_padre;?>" />
						</td>
					</tr>					
					 <tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'MADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="madre" id="madre" size="50" value="<?php echo $row->madre;?>" />
						</td>
					</tr>
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'CELMADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="cel_madre" id="cel_madre" size="50" value="<?php echo $row->cel_madre;?>" />
						</td>
					</tr>					
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'EMAILMADRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="email_madre" id="email_madre" size="50" value="<?php echo $row->email_madre;?>" />
						</td>
					</tr>					  
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'DIRECCION' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="direccion" id="direccion" size="50" value="<?php echo $row->direccion;?>" />
						</td>
					</tr>	
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'ISAPRE' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="isapre" id="isapre" size="50" value="<?php echo $row->isapre;?>" />
						</td>
					</tr>						  
					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'EMAILALUMNO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="email_alumno" id="email_alumno" size="50" value="<?php echo $row->email_alumno;?>" />
						</td>
					</tr>						  
 					<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'COMENTARIO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<textarea disabled name="comentario" rows="10" cols="46"  ><?php echo $row->comentario;?></textarea>
						</td>
					</tr> 
				
		<?php
			$k = 1 - $k;
		}

		?>
		
	</tbody>
	</table>
	<?php
		
		echo '</div>';
		echo $pane1->endPanel();
		echo $pane1->startPanel( JTEXT::_('Notas'), 'nom_cp_notas' );
		echo '<div id="cpanel">';
		?>

	<table class="adminlist">
		<tbody>
		<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'EMAILALUMNO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="email_alumno" id="email_alumno" size="50" value="<?php echo 'Alumno';?>" />
						</td>
					</tr>	
		<?php
		echo '</div>';
		
		echo $pane1->endPanel();
		echo $pane1->endPane();
		?>
		</tbody>
	</table>
	<?php
		
		echo '</div>';
		echo $pane1->endPanel();
		echo $pane1->startPanel( JTEXT::_('Anotaciones'), 'nom_cp_anotaciones' );
		echo '<div id="cpanel">';
		?>

	<table class="adminlist">
		<tbody>
		<tr>
						<td width="20%" class="key">
							<label>
								<?php echo JText::_( 'EMAILALUMNO' ); ?>:
							</label>
						</td>
						<td width="80%">
							<input disabled class="inputbox" type="text" name="email_alumno" id="email_alumno" size="50" value="<?php echo 'Alumno';?>" />
						</td>
					</tr>	
		<?php
		echo '</div>';
		
		echo $pane1->endPanel();
		echo $pane1->endPane();
		?>
		</tbody>
	</table>
